var WxParse = require('../../../wxParse/wxParse/wxParse.js');
const common=require('../../../utils/suggest.js')
const API=require('../../../utils/util.js')
Page({

  /**
   * 页面的初始数据
   */
  data: {
    article:'', //网页数据（包括图片、文字、声音等）
    requestURL : API.keepfitApi+'dietSuggestions/MEAT',
    notice:'啥也没有哦',
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that=this
    var parms={}
    common.getFruitSuggestions(parms,that.data.requestURL)
    .then(res=>{
      that.setData({
        article:res
      })
       // 数据绑定
    WxParse.wxParse('article_meat', 'html',that.data.article , that, 5)
    })   
  },

})